#include "UILabel.h"
#include "win_gdi.h"
#include "win_nt.h"

UILabel::UILabel(UIContainer *parent) : UIContainer(parent)
{
    this->setName("UILabel");
}

UILabel::~UILabel()
{
}

std::string UILabel::getUIType()
{
    return "UILabel";
}

void UILabel::onDrawContent(DuiWinManager *mgr, DuiRect &rect_in, DuiRect &rect_out)
{
    if(m_TextW.length()>0){
        render_draw_text(mgr, rect_in, m_TextW, m_Color, DUI_TEXT_ALIGN_CENTER, DUI_TEXT_ALIGN_CENTER, m_FontFamily, m_FontSize, m_FontWeight);
    }
}

